package cn.edu.gdu.quizpractice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.Column;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Reference;

/**
 * @Author: Aubery
 * @Date: 2025-03-01-11:39
 * @Description:
 */

@Data
@TableName("t_banks")
@AllArgsConstructor
@NoArgsConstructor
public class Bank {

    @TableId(value = "b_id", type = IdType.AUTO)
    @Column(name = "b_id")
    private Integer bId;

    @NotBlank
    /**
     * 题库名称
     * */
    private String name;

    @NotNull
    /**
     * 是否已审核
    * 0 未审核 1 已审核
    * */
    private Boolean isReviewed;

    /**
    * 题库中题目数量
    * */
    private Integer total;
}